package com.neuedu.jdboot.bean;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * 
 * @author chens
 *
 */
public class Privilege implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = -179968421796737485L;
	private Integer id;
	private String name;
	private String url;
	private Integer parentId;
	private Integer status;
	private Integer sort;

	/**
	 * 子级权限
	 */
	private List<Privilege> subList = new ArrayList<>();

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public Integer getParentId() {
		return parentId;
	}

	public void setParentId(Integer parentId) {
		this.parentId = parentId;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Integer getSort() {
		return sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}

	public List<Privilege> getSubList() {
		return subList;
	}

	public void setSubList(List<Privilege> subList) {
		this.subList = subList;
	}

	public Privilege() {
		super();
	}
	

	public Privilege(Integer id) {
		super();
		this.id = id;
	}

	public Privilege(Integer id, String name, String url, Integer parentId, Integer status, Integer sort) {
		super();
		this.id = id;
		this.name = name;
		this.url = url;
		this.parentId = parentId;
		this.status = status;
		this.sort = sort;
	}

	@Override
	public String toString() {
		return "Privilege [id=" + id + ", name=" + name + ", url=" + url + ", parentId=" + parentId + ", status="
				+ status + ", sort=" + sort + "]";
	}

}
